package com.woniu.crowd.infra.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 众筹表
 * </p>
 *
 * @author Lucas
 * @since 2022-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lg_crowdfunding_products")
public class CrowdfundingProducts implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 众筹id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品id
     */
    private Integer productId;

    /**
     * 众筹目标金额
     */
    private BigDecimal targetAmount;

    /**
     * 当前已筹金额
     */
    private BigDecimal totalAmount;

    /**
     * 当前参与众筹用户数
     */
    private Integer userCount;

    /**
     * 众筹开始时间
     */
    private String startDate;

    /**
     * 众筹结束时间
     */
    private String endDate;

    /**
     * 众筹状态( CREATED 已创建，CANCEL已取消，FINISH 已完成)
     */
    private String croedState;


}
